import { NextResponse } from "next/server"

export async function GET() {
    const res = await fetch('https://jsonplaceholder.typicode.com/posts')
    const data = await res.json()

    return NextResponse.json({ data })
}


// export async function POST(request) {
    
// }

// export async function PUT(request) {

// }

// export async function DELETE(request) {

// }

// export async function PATCH(request) {

// }

// export async function HEAD(request) {
   
// }

// export async function OPTIONS(request) {

// }